Optimal. Leaf size=468 \[ \frac{x^2 \left (-\left (-2 a c i+b^2 i-b c g+2 c^2 e\right )\right )-b (a i+c e)+2 a c g}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{x \left (x^2 (a b h-2 a c f+b c d)-a b f-2 a (c d-a h)+b^2 d\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{\tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right ) (2 a i-b g+2 c e)}{\left (b^2-4 a c\right )^{3/2}} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 3.87628, antiderivative size = 468, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 9, integrand size = 40, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.225 \[ \frac{x^2 \left (-\left (-2 a c i+b^2 i-b c g+2 c^2 e\right )\right )-b (a i+c e)+2 a c g}{2 c \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{x \left (x^2 (a b h-2 a c f+b c d)-a b f-2 a (c d-a h)+b^2 d\right )}{2 a \left (b^2-4 a c\right ) \left (a+b x^2+c x^4\right )}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (-\frac{b^2 (c d-a h)+4 a b c f-4 a c (a h+3 c d)}{\sqrt{b^2-4 a c}}+a b h-2 a c f+b c d\right )}{2 \sqrt{2} a \sqrt{c} \left (b^2-4 a c\right ) \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{\tanh ^{-1}\left (\frac{b+2 c x^2}{\sqrt{b^2-4 a c}}\right ) (2 a i-b g+2 c e)}{\left (b^2-4 a c\right )^{3/2}} \]
Antiderivative was successfully verified.
[In] Int[(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5)/(a + b*x^2 + c*x^4)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(c*x**4+b*x**2+a)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 5.20845, size = 524, normalized size = 1.12 \[ \frac{1}{4} \left (\frac{2 \left (a^2 (b i-2 c (g+x (h+i x)))+a \left (b^2 i x^2+b c (e+x (f-x (g+h x)))+2 c^2 x (d+x (e+f x))\right )-b c d x \left (b+c x^2\right )\right )}{a c \left (4 a c-b^2\right ) \left (a+b x^2+c x^4\right )}+\frac{\sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{b-\sqrt{b^2-4 a c}}}\right ) \left (b \left (c d \sqrt{b^2-4 a c}+a h \sqrt{b^2-4 a c}+4 a c f\right )-2 a c \left (f \sqrt{b^2-4 a c}+2 a h+6 c d\right )+b^2 (c d-a h)\right )}{a \sqrt{c} \left (b^2-4 a c\right )^{3/2} \sqrt{b-\sqrt{b^2-4 a c}}}+\frac{\sqrt{2} \tan ^{-1}\left (\frac{\sqrt{2} \sqrt{c} x}{\sqrt{\sqrt{b^2-4 a c}+b}}\right ) \left (b \left (c d \sqrt{b^2-4 a c}+a h \sqrt{b^2-4 a c}-4 a c f\right )+2 a c \left (-f \sqrt{b^2-4 a c}+2 a h+6 c d\right )+b^2 (a h-c d)\right )}{a \sqrt{c} \left (b^2-4 a c\right )^{3/2} \sqrt{\sqrt{b^2-4 a c}+b}}+\frac{2 \log \left (\sqrt{b^2-4 a c}-b-2 c x^2\right ) (-2 a i+b g-2 c e)}{\left (b^2-4 a c\right )^{3/2}}+\frac{2 \log \left (\sqrt{b^2-4 a c}+b+2 c x^2\right ) (2 a i-b g+2 c e)}{\left (b^2-4 a c\right )^{3/2}}\right ) \]
Antiderivative was successfully verified.
[In] Integrate[(d + e*x + f*x^2 + g*x^3 + h*x^4 + i*x^5)/(a + b*x^2 + c*x^4)^2,x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.093, size = 8189, normalized size = 17.5 \[ \text{output too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((i*x^5+h*x^4+g*x^3+f*x^2+e*x+d)/(c*x^4+b*x^2+a)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ -\frac{a b c e - 2 \, a^{2} c g + a^{2} b i -{\left (b c^{2} d - 2 \, a c^{2} f + a b c h\right )} x^{3} +{\left (2 \, a c^{2} e - a b c g +{\left (a b^{2} - 2 \, a^{2} c\right )} i\right )} x^{2} +{\left (a b c f - 2 \, a^{2} c h -{\left (b^{2} c - 2 \, a c^{2}\right )} d\right )} x}{2 \,{\left (a^{2} b^{2} c - 4 \, a^{3} c^{2} +{\left (a b^{2} c^{2} - 4 \, a^{2} c^{3}\right )} x^{4} +{\left (a b^{3} c - 4 \, a^{2} b c^{2}\right )} x^{2}\right )}} + \frac{\int \frac{a b f - 2 \, a^{2} h +{\left (b c d - 2 \, a c f + a b h\right )} x^{2} +{\left (b^{2} - 6 \, a c\right )} d - 2 \,{\left (2 \, a c e - a b g + 2 \, a^{2} i\right )} x}{c x^{4} + b x^{2} + a}\,{d x}}{2 \,{\left (a b^{2} - 4 \, a^{2} c\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x**5+h*x**4+g*x**3+f*x**2+e*x+d)/(c*x**4+b*x**2+a)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F(-2)] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((i*x^5 + h*x^4 + g*x^3 + f*x^2 + e*x + d)/(c*x^4 + b*x^2 + a)^2,x, algorithm="giac")
[Out]